<template>
  <datagrid>
    <h1>{{msg}}</h1>
    <label v-for="(item,index) in list"  :key='index'>
      <input type="checkbox" v-model='proGram' :value='item'>
      {{item}}
    </label>
    <ul>
      <li v-for='(item,index) in proGram' :key='index'>{{item}}</li>
    </ul>
  </datagrid>
</template>

<script>
export default {
data () {
  return {
    list:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
    msg:'请选择你喜欢的专栏',
    proGram:[]
  }
}
}
</script>

<style>

</style>